import { Map, Point, Polyline, Polygon } from "../dist"; //此引用方式归功于index.ts,如没有需单独引用到文件

window.load = () => {
    const map = new Map("foo");
    const point = new Point(100, 100);
    map.addGeometry(point);
    const polyline = new Polyline([[200, 200], [300, 200]]);
    map.addGeometry(polyline);
    const polygon = new Polygon([[300, 300], [300, 400], [400, 300]]);
    map.addGeometry(polygon);
}